<div class="product">
	
    <div class="woocommerce-tabs">
        
		<ul class="tabs">
                    <li><a href="#tab-products">Products</a></li>
                    <li><a href="#tab-faqs">FAQs</a></li>
                    <li><a href="#tab-howtoguides">How-To Guides</a></li>
                    <li><a href="#tab-learningcenter">Learning Center</a></li>
                    <li><a href="#tab-moreresources">More Resources</a></li>
                    <div style="width:100%;height:0px;clear:both;"></div>
		</ul>
        
		<div class="panel entry-content" id="tab-products" >
			
		<div class="featuredcatproduct">
                    
                    <?php if(get_field('catcompareproductone', 'product_cat_'.$category_ID.'') != '') { ?>
                    <?php include 'wp-content/themes/woostore/page-include-cat-product-comparer.php'; ?>
                <?php } ?>
                    
                <?php /** Removed From The Tabs
                       ** Moved With New Design To Main New Include Above The Tabs
                       ** Matt B - Apr 2013
                    
		<?php if(get_field('catfeaturedproductone', 'product_cat_'.$category_ID.'') != '') { ?>
				<h2 class="pagesubsectionheader">Featured <?php echo $category_name; ?></h2>
				
				<?php if (get_field('catfeaturedproductlayout', 'product_cat_'.$category_ID.'') == 2) { ?>
				
					<?php // Featured Product #1 ?>
					<?php $featuredproductid = get_field('catfeaturedproductone', 'product_cat_'.$category_ID.''); ?>
					<?php $featuredproduct = new wp_Query('post_type=product&p='.$featuredproductid.''); ?>
				
						<?php while($featuredproduct->have_posts()) : $featuredproduct->the_post(); ?>
							<?php
								$productsku = get_post_custom($post->ID);
								$showsku = $productsku['_sku'];
								foreach ( $showsku as $showsku );
							?>
							
							<div style="width:229px;float:left;margin:0px;text-align:center;">
								<a href="<?php the_permalink(); ?>">
									<?php if (get_field('productFeaturedImage') != '') { ?>
										<img src="<?php the_field('productFeaturedImage'); ?>" alt="<?php the_title(); ?>" width="229" height="229" />
									<?php } else { ?>
										<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID )); ?>
										<img  src="<?php echo $image[0]; ?>" alt="<?php the_title(); ?>" width="229" height="229" />
									<?php } ?>
								</a>
								<h2 style="margin-bottom:5px;"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
								<?php include '/home/silicons/public_html/wp-content/themes/woostore/woocommerce/single-product/price.php'; ?>
								<p><a class="button" href="<?php the_permalink(); ?>">View Product</a></p>
							</div>
							
						<?php endwhile; ?>
					<?php wp_reset_query() ; ?>
					
					<?php // Featured Product #2 ?>
					<?php $featuredproductid = get_field('catfeaturedproducttwo', 'product_cat_'.$category_ID.''); ?>
					<?php $featuredproduct = new wp_Query('post_type=product&p='.$featuredproductid.''); ?>
				
						<?php while($featuredproduct->have_posts()) : $featuredproduct->the_post(); ?>
							<?php
								$productsku = get_post_custom($post->ID);
								$showsku = $productsku['_sku'];
								foreach ( $showsku as $showsku );
							?>
							
							<div style="width:229px;float:right;margin:0px;text-align:center;">
								<a href="<?php the_permalink(); ?>">
									<?php if (get_field('productFeaturedImage') != '') { ?>
										<img src="<?php the_field('productFeaturedImage'); ?>" alt="<?php the_title(); ?>" width="229" height="229" />
									<?php } else { ?>
										<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID )); ?>
										<img  src="<?php echo $image[0]; ?>" alt="<?php the_title(); ?>" width="229" height="229" />
									<?php } ?>
								</a>
								<h2 style="margin-bottom:5px;"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
								<?php include '/home/silicons/public_html/wp-content/themes/woostore/woocommerce/single-product/price.php'; ?>
								<p><a class="button" href="<?php the_permalink(); ?>">View Product</a></p>
							</div>
							
						<?php endwhile; ?>
					<?php wp_reset_query() ; ?>
					
					<div style="width:100%;height:0px;clear:both;"></div>
				
				<?php } elseif (get_field('catfeaturedproductlayout', 'product_cat_'.$category_ID.'') == 3) { ?>
				
					<?php // Featured Product #1 ?>
					<?php $featuredproductid = get_field('catfeaturedproductone', 'product_cat_'.$category_ID.''); ?>
					<?php $featuredproduct = new wp_Query('post_type=product&p='.$featuredproductid.''); ?>
				
						<?php while($featuredproduct->have_posts()) : $featuredproduct->the_post(); ?>
							<?php
								$productsku = get_post_custom($post->ID);
								$showsku = $productsku['_sku'];
								foreach ( $showsku as $showsku );
							?>
							
							<div style="width:172px;float:left;margin:0px;text-align:center;padding-left:10px;padding-right:10px;">
								<a href="<?php the_permalink(); ?>">
									<?php if (get_field('productFeaturedImage') != '') { ?>
										<img src="<?php the_field('productFeaturedImage'); ?>" alt="<?php the_title(); ?>" width="172" height="172" />
									<?php } else { ?>
										<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID )); ?>
										<img  src="<?php echo $image[0]; ?>" alt="<?php the_title(); ?>" width="172" height="172" />
									<?php } ?>
								</a>
								<h2 style="margin-bottom:5px;"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
								<?php include '/home/silicons/public_html/wp-content/themes/woostore/woocommerce/single-product/price.php'; ?>
								<p><a class="button" href="<?php the_permalink(); ?>">View Product</a></p>
							</div>
							
							<div style="width:100%;height:0px;clear:both;"></div>
						<?php endwhile; ?>
					<?php wp_reset_query() ; ?>
					
					<?php // Featured Product #2 ?>
					<?php $featuredproductid = get_field('catfeaturedproducttwo', 'product_cat_'.$category_ID.''); ?>
					<?php $featuredproduct = new wp_Query('post_type=product&p='.$featuredproductid.''); ?>
				
						<?php while($featuredproduct->have_posts()) : $featuredproduct->the_post(); ?>
							<?php
								$productsku = get_post_custom($post->ID);
								$showsku = $productsku['_sku'];
								foreach ( $showsku as $showsku );
							?>
							
							<div style="width:172px;float:left;margin:0px;text-align:center;padding-left:10px;padding-right:10px;">
								<a href="<?php the_permalink(); ?>">
									<?php if (get_field('productFeaturedImage') != '') { ?>
										<img src="<?php the_field('productFeaturedImage'); ?>" alt="<?php the_title(); ?>" width="172" height="172" />
									<?php } else { ?>
										<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID )); ?>
										<img  src="<?php echo $image[0]; ?>" alt="<?php the_title(); ?>" width="172" height="172" />
									<?php } ?>
								</a>
								<h2 style="margin-bottom:5px;"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
								<?php include '/home/silicons/public_html/wp-content/themes/woostore/woocommerce/single-product/price.php'; ?>
								<p><a class="button" href="<?php the_permalink(); ?>">View Product</a></p>
							</div>
							
							<div style="width:100%;height:0px;clear:both;"></div>
						<?php endwhile; ?>
					<?php wp_reset_query() ; ?>
					
					<?php // Featured Product #3 ?>
					<?php $featuredproductid = get_field('catfeaturedproductthree', 'product_cat_'.$category_ID.''); ?>
					<?php $featuredproduct = new wp_Query('post_type=product&p='.$featuredproductid.''); ?>
				
						<?php while($featuredproduct->have_posts()) : $featuredproduct->the_post(); ?>
							<?php
								$productsku = get_post_custom($post->ID);
								$showsku = $productsku['_sku'];
								foreach ( $showsku as $showsku );
							?>
							
							<div style="width:172px;float:left;margin:0px;text-align:center;padding-left:10px;padding-right:10px;">
								<a href="<?php the_permalink(); ?>">
									<?php if (get_field('productFeaturedImage') != '') { ?>
										<img src="<?php the_field('productFeaturedImage'); ?>" alt="<?php the_title(); ?>" width="172" height="172" />
									<?php } else { ?>
										<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID )); ?>
										<img  src="<?php echo $image[0]; ?>" alt="<?php the_title(); ?>" width="172" height="172" />
									<?php } ?>
								</a>
								<h2 style="margin-bottom:5px;"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
								<?php include '/home/silicons/public_html/wp-content/themes/woostore/woocommerce/single-product/price.php'; ?>
								<p><a class="button" href="<?php the_permalink(); ?>">View Product</a></p>
							</div>
							
							<div style="width:100%;height:0px;clear:both;"></div>
						<?php endwhile; ?>
					<?php wp_reset_query() ; ?>
					
					<div style="width:100%;height:0px;clear:both;"></div>
				
				<?php } else { ?>
				
					<?php $featuredproductid = get_field('catfeaturedproductone', 'product_cat_'.$category_ID.''); ?>
					<?php $featuredproduct = new wp_Query('post_type=product&p='.$featuredproductid.''); ?>
				
						<?php while($featuredproduct->have_posts()) : $featuredproduct->the_post(); ?>
							<?php
								$productsku = get_post_custom($post->ID);
								$showsku = $productsku['_sku'];
								foreach ( $showsku as $showsku );
							?>
							
							<div class="featuredcatproductimage">
								<a href="<?php the_permalink(); ?>">
									<?php if (get_field('productFeaturedImage') != '') { ?>
										<img src="<?php the_field('productFeaturedImage'); ?>" alt="<?php the_title(); ?>" width="200" height="200" />
									<?php } else { ?>
										<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID )); ?>
										<img  src="<?php echo $image[0]; ?>" alt="<?php the_title(); ?>" width="200" height="200" />
									<?php } ?>
								</a>
							</div>
							<div class="featuredcatproductcontenttop">
								<h2 style="margin-bottom:5px;"><?php the_title(); ?></h2>
								<p style="font-size:11px;font-style:italic;color:#747170;"><?php echo $showsku; ?></p>
							</div>
							<div class="featuredcatproductcontentbottom">
								<div class="featuredcatproductontentbottomleft">
									<style>
										.featuredcatproductontentbottomleft span.from { display:none; }
										.featuredcatproductontentbottomleft del { display:none; }
										.featuredcatproductontentbottomleft ins { width:100%;clear:both;font-size:30px;color:#263692;border:0px;text-decoration:none; }
											.featuredcatproductontentbottomleft ins span { border:0px;text-decoration:none;padding-top:20px; }
										.featuredcatproductontentbottomleft span.amount { font-weight:bold; }
									</style>
									<p><strong>Starting At:</strong></p>
									<?php include '/home/silicons/public_html/wp-content/themes/woostore/woocommerce/single-product/price.php'; ?>
									<p><a class="button" href="<?php the_permalink(); ?>">View Product</a></p>
								</div>
								<div style="width:100%;height:0px;clear:both;"></div>
							</div>
							<div style="width:100%;height:0px;clear:both;"></div>
						<?php endwhile; ?>
					<?php wp_reset_query() ; ?>
				
				<?php } ?>
				
		<?php } ?>
		
<!-- END CATEGORY FEATURED PRODUCT AREA -->
                 
                 **/ ?>

                    
                <?php // Insert The Category Products Or Sub-Categories In The First Tab ?>
                    
                <?php if ( have_posts() ) : ?>
                    
                    <?php include '/home/silicons/public_html/wp-content/themes/woostore/woocommerce/loop/pagination.php'; ?>
                    <div style="width:100%;height:0px;clear:both;margin-bottom:10px;"></div>

			<?php
				/**
				 * woocommerce_before_shop_loop hook
				 *
				 * @hooked woocommerce_result_count - 20
				 * @hooked woocommerce_catalog_ordering - 30
				 */
				do_action( 'woocommerce_before_shop_loop' );
			?>

			<?php woocommerce_product_loop_start(); ?>

				<?php woocommerce_product_subcategories(); ?>

				<?php while ( have_posts() ) : the_post(); ?>

                                    <?php woocommerce_get_template_part( 'content', 'product' ); ?>

				<?php endwhile; // end of the loop. ?>

			<?php woocommerce_product_loop_end(); ?>

			<?php
				/**
				 * woocommerce_after_shop_loop hook
				 *
				 * @hooked woocommerce_pagination - 10
				 */
				do_action( 'woocommerce_after_shop_loop' );
			?>

		<?php elseif ( ! woocommerce_product_subcategories( array( 'before' => woocommerce_product_loop_start( false ), 'after' => woocommerce_product_loop_end( false ) ) ) ) : ?>

			<?php woocommerce_get_template( 'loop/no-products-found.php' ); ?>

		<?php endif; ?>
                    
                <?php // End The Product / Sub-Category Section ?>
                
    	</div>

    </div>

	<div id="tab-faqs" class="panel entry-content">
		<h3 class="widget-title" style="font-size:15px;font-weight:bold;">Frequently Asked Questions</h3>
        <p style="font-weight:bold;">Check out our great FAQs and Answers for our <?php echo single_term_title( "", false ); ?> below:</p>
        
        <?php the_field('catfaqcontent', 'product_cat_'.$category_ID.''); ?>
        
	</div>
    <div id="tab-howtoguides" class="panel entry-content">
		<h3 class="widget-title" style="font-size:15px;font-weight:bold;">Category How-To Guides</h3>
        <p style="font-weight:bold;">Check out our great DIY and How-To Guides for our <?php echo single_term_title( "", false ); ?> below:</p>
        
        <?php the_field('cathowtocontent', 'product_cat_'.$category_ID.''); ?>
		
	</div>
	<div id="tab-learningcenter" class="panel entry-content">
		<h3 class="widget-title" style="font-size:15px;font-weight:bold;">Category Learning Guide</h3>
        <p style="font-weight:bold;">Check out our great Information &amp; Learning Guides for our <?php echo single_term_title( "", false ); ?> below:</p>
        
        <?php the_field('catlearninguidecontent', 'product_cat_'.$category_ID.''); ?>
        
	</div>
	<div id="tab-moreresources" class="panel entry-content">
		<h3 class="widget-title" style="font-size:15px;font-weight:bold;">Additional &amp; Related Resources</h3>
        <p style="font-weight:bold;">Check out our great Documents &amp; Additional Resources for our <?php echo single_term_title( "", false ); ?> below:</p>
        
        <ul>
			<li><a href="http://www.siliconsolar.com/publication/silicon-solar-company-brochure/wppa_open">Silicon Solar Company Information Brochure</a></li>
			<li><a href="http://www.siliconsolar.com/publication/sunmaxx-company-information-brochure/wppa_open">SunMaxx Company Information Brochure</a></li>
			<li><a href="http://techvideos.siliconsolar.com" target="_blank">Solar How-To &amp; Troubleshooting Videos</a></li>
            <li><a href="http://www.solarwebinars.com" target="_blank">Interested In Solar Hot Water? Check Out Our Solar Hot Water Training Videos</a></li>
            
            <?php // Include Link To SolarHotWater.SiliconSolar.com On Hot Water Category Pages
				if (is_tax( 'product_cat', array( 'solar-hot-water-heaters', 'flat-plate-solar-collectors', 'solar-evacuated-tube-collectors', 'u-pipe-evacuated-tube-solar-collectors', 'replacement-evacuated-tubes', 'thermosyphon-solar-hot-water', 'demo-solar-hot-water-collectors', 'solar-water-storage-tanks', 'residential-solar-storage-tanks', 'non-pressurized-storage-tanks', 'non-pressurized-storage-tank-accessories', 'marathon-residential-solar-storage-tanks', 'solar-pumping-stations', 'stormaxx-dw-solar-storage-tanks', 'stormaxx-pressurized-buffer-tanks', 'stormaxx-se-solar-storage-tanks', 'stormaxx-simple-drainback-storage-tanks', 'solar-hot-water-accessories', 'pre-packaged-solar-thermal-systems', 'solar-glycol-heat-transfer-fluids', 'solar-glycol-xt', 'pre-insulated-line-set', 'solar-expansion-tanks', 'solar-heat-exchangers', 'solar-hot-water-circulator-pumps', 'solar-hot-water-drainback-tanks-accessories', 'solar-hot-water-mounting-hardware', 'solar-plumbing-hardware', 'solar-simulation-software', 'solar-water-storage-controllers-and-stations', 'solar-commercial-hot-water-systems', 'solar-residential-hot-water-systems', 'heliomaxx-combi-kits', 'cold-climate-residential-solar-hot-water-kits', 'warm-climate-residential-solar-hot-water-kits', 'basic-pre-insulated-line-set', 'buried-pre-insulated-line-set', 'pre-insulated-line-set-hardware', 'air-to-water-solar-heat-exchangers', 'brazed-plate-solar-heat-exchangers', 'butler-solar-wand-heat-exchangers', 'shell-tube-solar-heat-exchangers', 'el-sid-dc-circulator-pumps', 'grundfos-solar-circulator-pumps', 'laing-solar-circulator-pumps', 'polysun-software-packages', 'solar-pool-heaters', 'solar-pool-heater-accessories', 'fafco-solar-pool-heaters', 'solar-pump-stations', 'solar-controller-accessories', 'solar-water-storage-controllers' ) ) ) {
					echo '<li><a href="http://solarhotwater.siliconsolar.com" target="_blank">Solar Hot Water Information &amp; Learning Guide</a></li>';
			} ?>
            
		</ul>
        
		<?php include '/home/silicons/public_html/wp-content/themes/siliconsolar/yarpp-template-example.php'; ?>

	</div>
    </div>
</div>